home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1888 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.2 KB  |  41 lines

  1. on(press){
  2.    _root.txt_number = 1;
  3.    if(_root.inven._currentframe == 1)
  4.    {
  5.       if(_root.micon._currentframe == 1 && _root.range == true)
  6.       {
  7.          if(_root.even31 == 1)
  8.          {
  9.             _root.next_dis1 = 2;
  10.             _root.next_txt1 = "I\'ll leave the cheese there for now.";
  11.          }
  12.          else
  13.          {
  14.             _root.next_dis1 = 2;
  15.             _root.next_txt1 = "I don\'t think it would be a smart idea to stick my hand in there.";
  16.          }
  17.       }
  18.       if(_root.micon._currentframe == 2)
  19.       {
  20.          if(_root.even31 == 1)
  21.          {
  22.             _root.next_dis1 = 2;
  23.             _root.next_txt1 = "I thought there\'d be a mouse in there and this cheese would attract it, but it doesn\'t seem like one is in there.";
  24.          }
  25.          else
  26.          {
  27.             _root.next_dis1 = 2;
  28.             _root.next_txt1 = "It\'s a small hole in the wall.";
  29.          }
  30.       }
  31.       if(_root.micon._currentframe == 48)
  32.       {
  33.          _root.sfx.gotoAndStop(3);
  34.          _root.micon.gotoAndStop(1);
  35.          _root.even31 = 1;
  36.          _root.next_dis1 = 2;
  37.          _root.next_txt1 = "Hmm that did nothing.";
  38.       }
  39.    }
  40. }
  41.